package com.itheima.hashset;

import com.itheima.domain.Student;

import java.util.HashSet;

public class Demo02 {

    public static void main(String[] args) {


        HashSet<Student> set = new HashSet<>();
        Student cai1 = new Student("kunkun", 20, 8, 80);
        Student cai2 = new Student("kunkun", 20, 8, 80);
        Student lu = new Student("luhan", 80, 30, 80);
        Student wu = new Student("wu", 3, 0, 120);
        Student huang = new Student("huangzitao", 100, 80, 80);
        set.add(cai1);
        set.add(cai2);
        set.add(lu);
        set.add(wu);
        set.add(huang);
        set.forEach(s-> System.out.println(s));
    }
}
